package com.juku2024.juku.adapter

import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.juku2024.juku.base.BaseFragment

class HomeTabFragmentAdapter(fragment: Fragment, val fragments: List<BaseFragment>) : FragmentStateAdapter(fragment) {


    override fun getItemCount(): Int {
        return fragments.size
    }

    override fun createFragment(position: Int): Fragment {
        return fragments[position]
    }

}

